package com.daumcorp.searchdata.repository;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.daumcorp.searchdata.domain.Book;

public interface BookMapper {
	@Select("select * from book where isbn=#{isbn}")
	Book selectBookByIsbn(String isbn);

	@Select("select * from book order by inserttime")
	List<Book> selectAllBook();

	@Insert("insert into book(isbn, title) values (#{isbn}, #{title})")
	void insertBook(Book book);
}